<?php namespace app\admin\validate;
use think\Validate;
//分类验证
class Category extends Validate{
	protected $rule =   [
         'cname'  => 'require|max:25',
         'link'    => 'require',
         'sort'   => 'require|number|between:1,100',
        
           
    ];
    
    protected $message  =   [
        'cname.require' => '请输入栏目名称！',
        'link.require'   => '请输入url链接！',
        'sort.require'  => '请输入栏目排序',
        'sort.number'   => '栏目排序必须是数字',
        'sort.between'  => '栏目排序只能在1-100之间',
            
    ];
	
}

